
import axios from '@/utils/request'

// 分页
export const pageDrawApply = (params) => {
  return axios({
    method: 'GET',
    url: 'draw/pageDrawApply',
    params
  })
}
// 详情
export const drawApplyDetail = (id) => {
  return axios({
    method: 'GET',
    url: `draw/drawApplyDetail/${id}`
  })
}

// 提交
export const submitDrawApply = (data) => {
  return axios({
    method: 'POST',
    url: 'draw/submitDrawApply',
    data
  })
}
// 修改
export const modifyDrawApply = (data) => {
  return axios({
    method: 'POST',
    url: 'draw/modifyDrawApply',
    data
  })
}
// 删除
export const deleteDrawApply = (id) => {
  return axios({
    method: 'POST',
    url: `draw/deleteDrawApply/${id}`
  })
}

// 详情
export const getwlId = (id) => {
  return axios({
    method: 'GET',
    url: '/draw/findDrawMaterailDetail/'+id,
  })
}

export const receiveTrans = (params) => {
  return axios({
    method: 'GET',
    url: '/draw/receiveTrans',
    params
  })
}
export function exportDraw (params) {
  return axios({
    url: 'draw/exportDraw',
    method: 'GET',
    params,
    responseType: 'blob'
  })
}
export function exportReceiveTrans (params) {
  return axios({
    url: 'draw/exportReceiveTrans',
    method: 'GET',
    params,
    responseType: 'blob'
  })
}

export const drawApplyTotalAmount = (params) => {
  return axios({
    method: 'GET',
    url: '/draw/drawApplyTotalAmount',
    params
  })
}

//扫二维码查询材料信息
// export const findByCanCheckMaterail = (params) => {
//   return axios({
//     method: 'GET',
//     url: '/stockCheck/findByCanCheckMaterail',
//     params
//   })
// }


